package com.buaat.platform.resources.org;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.buaat.platform.repository.org.Organization;

@RestController
@RequestMapping("/orgs")
public class OrgsResources {
	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public List<Organization> get(@PathVariable String id) {
		List<Organization> data = new ArrayList<Organization>();
		data.add(new Organization("2", "团委", true));
		return data;
	}
}
